From: Matthew Daley Date: Wed, 30 Oct 2013 07:51:43 +0000 (+1300) Subject: libxc: remove pointless null pointer check in xc_interface_open_common X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6106 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6b0283689aede7d216d75088015abde950bfdbc1;p=xen.git libxc: remove pointless null pointer check in xc_interface_open_common xch is guaranteed non-null here. Coverity-ID: 1055944 Signed-off-by: Matthew Daley Reviewed-by: Andrew Cooper Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_private.c b/tools/libxc/xc_private.c index a260257cd5..524862e9e6 100644 --- a/tools/libxc/xc_private.c +++ b/tools/libxc/xc_private.c @@ -189,7 +189,7 @@ static struct xc_interface_core *xc_interface_open_common(xentoollog_logger *log err_put_iface: xc_osdep_put(&xch->osdep); err: - if (xch) xtl_logger_destroy(xch->error_handler_tofree); + xtl_logger_destroy(xch->error_handler_tofree); if (xch != &xch_buf) free(xch); return NULL; }